define(['./../initial', './../service/showMsg'], function () {
    var app = angular.module('App.home');
    app.factory('Project.Extend.ChordStastic', ['$q', '$http', 'showMsg', '$rootScope',
        function ($q, $http, showMsg, $rootScope) {

            var Extend = {};

            Extend.postConvergence = function (queryCondition) {
                var _this = this;
                var defer = $q.defer();
                _this._requestHelper('post', 'postConvergence', queryCondition).then(function (data) {
                    _this.tempConvergenceList = data;
                    defer.resolve(data);
                });
                return defer.promise;
            };

            Extend.getLocationList = function (type) {
                var _this = this;
                var defer = $q.defer();
                _this._requestHelper('get', 'getLocationList/' + type).then(function (data) {
                    defer.resolve(data);
                });
                return defer.promise;
            };

            return Extend;
        }
    ]);
});
